<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gname" data-rule="required" class="form-control form-control" name="row[gname]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">类型:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                <label for="row2"><input class="types" name="row[type]" type="radio"  value="0" checked/>公司</label>
                <!--<label for="row2"><input class="types" name="row[type]" type="radio"   value="1"/>个人</label>-->

            </div>

        </div>
    </div>
    <div class="form-group"  id="gongsi" style="display: block;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ssgs_id')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select name="row[dep]" class="form-control" id="">
                {foreach name="dep" item="vo"}
                <option value="{$vo.id}">{$vo.name}</option>
                {/foreach}
            </select>

        </div>
    </div>





    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addrss')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addrss" data-rule="required" class="form-control form-control" name="row[address]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required" class="form-control form-control" name="row[mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Manger')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-userid" data-rule="required" data-source="/api/base/user" data-primary-key="userid" data-field="username"  data-params='{"custom[id]":"1"}'  class="form-control selectpage" name="row[manger]" type="text" value="">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">对接人:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-userid" data-rule="required" data-source="/api/base/user" data-primary-key="userid" data-multiple="true" data-field="username"  data-params='{"custom[id]":"1"}'  class="form-control selectpage" name="row[docking]" type="text" value="">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" data-rule="required" class="form-control  form-control" rows="5" name="row[remark]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
